arm64: dts: marvell: Enable second SDHCI controller in Armada 37xx
authorKonstantin Porotchkin <kostap@marvell.com>
Tue, 23 May 2017 13:11:40 +0000 (16:11 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Sep 2017 00:59:17 +0000 (01:59 +0100)
The Armada 37xx SoCs has 2 SDHCI interfaces. This patch adds the second
one.

Moreover, the Armada 37xx DB v2 board populates the 2 SDHCI interfaces.

The second interface is using pluggable module that can either
have an SD connector or eMMC on it.
This patch adds support for SD module in the device DT.

[ gregory.clement@free-electrons.com:
 - Add more detail in commit log
 - Sort the dt node in address order
 - Document the SD slot in the dts ]

Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Gbp-Pq: Topic features/arm64
Gbp-Pq: Name arm64-dts-marvell-Enable-second-SDHCI-controller-in-.patch

arch/arm64/boot/dts/marvell/armada-3720-db.dts
arch/arm64/boot/dts/marvell/armada-37xx.dtsi

index a89855f57091fac35d3ba4b9821fd2a902f5ed77..6a0abd7a5349177bd5cd7436f105af44d8f12ace 100644 (file)
        status = "okay";
 };
 
+/* SD slot module on CON14(V2.0)/CON15(V1.4) */
+&sdhci1 {
+       wp-inverted;
+       cd-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>;
+       bus-width = <4>;
+       marvell,pad-type = "sd";
+       status = "okay";
+};
+
 &spi0 {
        status = "okay";
        pinctrl-names = "default";
index 1ce5e773dd30f5c563c04d7f922f3366445c24bc..cb931e41c014590eab48890171b8b434080dd30d 100644 (file)
                                };
                        };
 
+                       sdhci1: sdhci@d0000 {
+                               compatible = "marvell,armada-3700-sdhci",
+                                            "marvell,sdhci-xenon";
+                               reg = <0xd0000 0x300>,
+                                     <0x1e808 0x4>;
+                               interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&nb_periph_clk 0>;
+                               clock-names = "core";
+                               status = "disabled";
+                       };
+
                        sdhci0: sdhci@d8000 {
                                compatible = "marvell,armada-3700-sdhci",
                                "marvell,sdhci-xenon";